var userList = new Array(); // or just []
userList.push("Westin","Guest");

function addUser(name)
{
    userList.push("" + name);
    console.log("Adding " + name);
}
function getUser(index)
{
    return userList[index];
}
function removeUser(index)
{
    userList.remove(index);
}

function makeList(id){
    for(var i = 0; i < userList.length; i++ )
    {
        id.append({"userName": getUser(i)});
        console.log(getUser(i));
    }
}

// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function(from, to) {
  var rest = this.slice((to || from) + 1 || this.length);
  this.length = from < 0 ? this.length + from : from;
  return this.push.apply(this, rest);
};
